﻿@model Church.Entities.ShrinesCollection
@{
	ViewBag.Title = "Святыни собора";
}

<div>
	<span>
		<h2>Святыни собора</h2>
	</span>
</div>
<div class="back">
	<a href="@(Url.Action<HomeController>(m => m.Index()))">Назад</a>
</div>
@if (Model != null && Model.Shrines != null && Model.Shrines.Any())
{
	<div class="shrines-all">
		<ul>
			@foreach (var shrine in Model.Shrines)
			{
				<li>
					<a href="@(Url.Action<ShrinesController>(m => m.Shrine(shrine.Number)))">
						<img src="@shrine.ImageUrl" />
						<h2>@shrine.Header</h2>
					</a>
				</li>
			}
		</ul>
	</div>
}
